30. R Squared Metric for Regression

R Squared Metric for Regression

INSTRUCTOR NOTE:

Note that R 2 is only bounded from below by 0 when evaluating a linear regression on its training set. If evaluated on a significantly different set, where the predictions of a regressor are worse than simply guessing the mean value for the whole set, the calculation of R 2 can be negative.